home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4425 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: colossus.holonet.net!russell
  2. From: russell@news.mdli.com (Russell Blackadar)
  3. Newsgroups: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp
  4. Subject: Re: float != float and floats as return types
  5. Followup-To: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp
  6. Date: 30 Jan 1996 06:36:00 GMT
  7. Organization: HoloNet National Internet Access System: 510-704-1058/modem
  8. Message-ID: <4eke8g$64m@colossus.holonet.net>
  9. References: <4ej9lb$mpc@fu-berlin.de> <310D4D9C.7DAB2E1B@alcyone.com>
  10. NNTP-Posting-Host: jubal.mdli.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Erik Max Francis (max@alcyone.com) wrote:
  14. ...
  15. : I don't understand what you find surprising.  Both the second and third column
  16. : have the same computation, except that in one of the x^2 function is inlined
  17. : and in the other it is called through a function.  In either case, you get
  18. : exactly the same value.  What is the objection?
  19.  
  20. What is surprising is that all the columns are not zero!  The original poster
  21. was offering some speculations as to how that might have happened, but as you
  22. say (and I think he'd agree) it doesn't wash.  I ran his posted code and
  23. got all zeroes.  Either there's a *serious* problem with his compiler, or the
  24. posted code is not the same as what he compiled.  Either way, he should try
  25. to pin down the cause of the trouble with more print statements, etc... 
  26. --
  27. Russell Blackadar,   russell@mdli.com
  28.